package sy.mail.model;

import java.util.ArrayList;
import java.util.List;

/**
 * <Title></Title> 
 *
 * <Author>黄智</Author>
 *
 * <Copyright>Copyright (c) 2012</Copyright>
 *
 * <Create Date>Jul 27, 2012,10:00:53 AM</Create Date>
 *
 * <Version>1.0</Version> 
 */
public class Mail {
	private String message;   //邮件内容
	private String title;     //邮件标题
	private List toAddresses; //邮件地址
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public List getToAddresses() {
		return toAddresses;
	}
	public void setToAddresses(List toAddresses) {
		this.toAddresses = toAddresses;
	}
	public void addAddress(String address){
		if(toAddresses==null){
			toAddresses = new ArrayList();
		}
		toAddresses.add(address);
	}
}
